package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.SceneProcessReturnValueVersionMapper;
import com.ruoyi.business.domain.SceneProcessReturnValueVersion;
import com.ruoyi.business.service.ISceneProcessReturnValueVersionService;

/**
 * 场景流程返回值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-14
 */
@Service
public class SceneProcessReturnValueVersionServiceImpl implements ISceneProcessReturnValueVersionService 
{
    @Autowired
    private SceneProcessReturnValueVersionMapper sceneProcessReturnValueVersionMapper;

    /**
     * 查询场景流程返回值
     * 
     * @param id 场景流程返回值主键
     * @return 场景流程返回值
     */
    @Override
    public SceneProcessReturnValueVersion selectSceneProcessReturnValueVersionById(Long id)
    {
        return sceneProcessReturnValueVersionMapper.selectSceneProcessReturnValueVersionById(id);
    }

    /**
     * 查询场景流程返回值列表
     * 
     * @param sceneProcessReturnValueVersion 场景流程返回值
     * @return 场景流程返回值
     */
    @Override
    public List<SceneProcessReturnValueVersion> selectSceneProcessReturnValueVersionList(SceneProcessReturnValueVersion sceneProcessReturnValueVersion)
    {
        return sceneProcessReturnValueVersionMapper.selectSceneProcessReturnValueVersionList(sceneProcessReturnValueVersion);
    }

    /**
     * 新增场景流程返回值
     * 
     * @param sceneProcessReturnValueVersion 场景流程返回值
     * @return 结果
     */
    @Override
    public int insertSceneProcessReturnValueVersion(SceneProcessReturnValueVersion sceneProcessReturnValueVersion)
    {
        sceneProcessReturnValueVersion.setCreateTime(DateUtils.getNowDate());
        return sceneProcessReturnValueVersionMapper.insertSceneProcessReturnValueVersion(sceneProcessReturnValueVersion);
    }

    /**
     * 修改场景流程返回值
     * 
     * @param sceneProcessReturnValueVersion 场景流程返回值
     * @return 结果
     */
    @Override
    public int updateSceneProcessReturnValueVersion(SceneProcessReturnValueVersion sceneProcessReturnValueVersion)
    {
        sceneProcessReturnValueVersion.setUpdateTime(DateUtils.getNowDate());
        return sceneProcessReturnValueVersionMapper.updateSceneProcessReturnValueVersion(sceneProcessReturnValueVersion);
    }

    /**
     * 批量删除场景流程返回值
     * 
     * @param ids 需要删除的场景流程返回值主键
     * @return 结果
     */
    @Override
    public int deleteSceneProcessReturnValueVersionByIds(Long[] ids)
    {
        return sceneProcessReturnValueVersionMapper.deleteSceneProcessReturnValueVersionByIds(ids);
    }

    /**
     * 删除场景流程返回值信息
     * 
     * @param id 场景流程返回值主键
     * @return 结果
     */
    @Override
    public int deleteSceneProcessReturnValueVersionById(Long id)
    {
        return sceneProcessReturnValueVersionMapper.deleteSceneProcessReturnValueVersionById(id);
    }
}
